package com.icode.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icode.common.utils.PageUtils;
import com.icode.gulimall.product.entity.CategoryEntity;
import com.icode.gulimall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author my_code
 * @email 1345743081@gmail.com
 * @date 2020-10-27 17:57:59
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenus(List<Long> asList);

    /**
     * 找到catelogId的完整路径
     * @param catalogId
     * @return
     */
    Long[] findCatalogPath(Long catalogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catalog2Vo>> getCatalogJson();

}

